package com.yy.dto;

import com.yy.domain.PayOrder;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;

@Data
public class PayTradeOrderDTO {

    @NotBlank(message = "支付类型不能为空")
    private String payType;

    @NotNull(message = "商铺ID不能为空")
    private Long houseId;

    @NotNull(message = "业主ID不能为空")
    private Long ownerId;

    @NotBlank(message = "业主名称不能为空")
    private String ownerName;

    @NotNull(message = "实付金额不能为空")
    private BigDecimal receivableAmount;

    @NotNull(message = "代扣金额不能为空")
    private BigDecimal withholdAmount;

    @NotBlank(message = "是否代扣不能为空")
    private String yesNo;

    @NotEmpty(message = "订单详情不能为空")
    private List<PayOrder> payOrders=new ArrayList<>();
}
